package com.lijie.ljblog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lijie
 * @since 2021-08-28
 */
@ApiModel(value="Blog对象", description="")
@Data
public class Blog implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "blog的类型（原创、转载）")
    private String blogType;

    @ApiModelProperty(value = "blog分类")
    private String blogClassify;

    @ApiModelProperty(value = "博客正文")
    private String blogText;
    @ApiModelProperty(value = "博客正文")
    private String blogHtml;
    @ApiModelProperty(value = "1 提交状态、0草稿状态、-1 删除状态")
    private String blogStatus;

    @ApiModelProperty(value = "阅读量")
    private Integer readNums;

    @ApiModelProperty(value = "点赞量")
    private Integer likeNums;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "作者")
    private String acthor;

//    @ApiModelProperty(value = "封面图")
//    private String imgUrl;
//
//
//    public String getImgUrl() {
//        return imgUrl;
//    }
//
//    public void setImgUrl(String imgUrl) {
//        this.imgUrl = imgUrl;
//    }

}
